home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Array.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  2.2 KB  |  18 lines

  1. class Array
  2. {
  3.     var length                                                           // A nonzero-based integer specifying the number of elements in the array.
  4.  
  5.     function concat(value)                                               // Concatenates the elements specified in the parameters with the elements in my_array, and creates a new array. 
  6.     function join(separator)                                             // Converts the elements in an array to strings, inserts the specified separator between the elements, concatenates them, and returns the resulting string.
  7.     function pop()                                                       // Removes the last element from an array and returns the value of that element.
  8.     function push(value)                                                 // Adds one or more elements to the end of an array and returns the array's new length.
  9.     function splice(start, deleteCount, value)                           // Adds and removes elements from an array. This method modifies the array without making a copy.
  10.     function toString()                                                  // Returns a string value representing the elements in the specified Array object. Every element in the array, starting with index 0 and ending with index my_array.length-1, is converted to a concatenated string and separated by commas.
  11.     function unshift(value)                                              // Adds one or more elements to the beginning of an array and returns the array's new length.
  12.     function reverse()                                                   // Reverses the array in place.
  13.     function shift()                                                     // Removes the first element from an array and returns that element.
  14.     function slice(start, end)                                           // Extracts a slice or a substring of the array and returns it as a new array without modifying the original array.
  15.     function sort(compareFunction, option)                               // Sorts the elements in an array. Flash sorts according to ASCII (Unicode) values.
  16.     function sortOn(fieldName, option)                                   // Sorts the elements in an array according to one or more fields in the array.
  17. }
  18.